"""目标"""
"""读写 .json文件"""
import json

# with open("object_07.json", "r", encoding="utf-8") as f:

    # f == json文件对象
    # json对象 -> load()
    # for i in json.load(f):
    #     if i["name"] == "欧娟":
    #         print(i["address"])
    #
    # # data 是 json数据对象
    # data = f.read()
    # json_data = json.loads(data)
    # print(json_data)
# json串 -> python对象
dict_request = {
    "info": {
        "_postman_id": "c8133924-43d9-46dd-91a8-65a7b4104bf9",
        "name": "crmeb啊啊啊",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    }
}
with open("object_07_2.json", mode="w", encoding="utf-8") as fw:
    json.dump(dict_request, fw, ensure_ascii=False, indent=4)

"""数据"""
# with open("object_07.json", "r", encoding="utf-8") as f:
#     data = f.read()
#     print(type(data))
#     datas = json.loads(data)
#     print(type(json.dumps(datas, ensure_ascii=False)))
#
